﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<!DOCTYPE html>

<html>
<head runat="server">
    <meta name="viewport" content="width=device-width" />
    <title>Login</title>

    <link href="../../easyui/themes/default/easyui.css" rel="stylesheet" />
    <link href="../../easyui/themes/icon.css" rel="stylesheet" />
    <link href="../../easyui/demo.css" rel="stylesheet" />
    <script src="../../easyui/jquery.min.js"></script>
    <script src="../../easyui/jquery.easyui.min.js"></script>
    <script src="../../easyui/locale/easyui-lang-zh_CN.js"></script>
    
    <script src="../../Scripts/js/Login.js"></script>
    <style type="text/css">
        .auto-style1 {
            height: 40px;
        }

        .login_bt {
            background: #fff url('../Images/login_btn.png') repeat-x 0 center;
            height: 35px;
            width: 124px;
            border: none;
            margin: 0;
            cursor: pointer;
        }

        .button-wrapper {
            display: block;
            padding: 0;
            width: 124px;
            cursor: pointer;
        }
    </style>

    <script type="text/javascript">
        $(function () {
            $("#valiCode").bind("click", function () {
                this.src = "../User/GetValidateCode?time=" + (new Date()).getTime();
            });
        });
    </script>
</head>
<body style="background-image: url(../Images/loginbg.jpg)">
    <div id="w" class="easyui-window" title="酒店管理---系统登陆" data-options="closable:false,minimizable:false,collapsible:false,maximizable:false,resizable:false" style="width: 300px; height: 270px; padding: 10px;">

        <table cellpadding="5" >
            <tr>
                <td class="auto-style1">用户名:</td>
                <td class="auto-style1">
                    <input id="name" class="easyui-validatebox textbox" style="height: 21px;" data-options="required:true,validType:'length[3,10]',novalidate:true"></td>
            </tr>
            <tr>
                <td class="auto-style1">密码:</td>
                <td class="auto-style1">
                    <input id ="pwd" type="password" class="easyui-validatebox textbox" style="height: 21px;" data-options="required:true,validType:'length[3,10]',novalidate:true"></td>
            </tr>
            <tr>
                <td class="auto-style1">验证码:</td>
                <td class="auto-style1" style="vertical-align: middle">
                    <input id="code" style="width: 92px" style="height: 21px;" class="easyui-validatebox textbox" data-options="required:true,validType:'length[3,10]',novalidate:true"><img id="valiCode" style="cursor: pointer; vertical-align: middle" src="../User/GetValidateCode" alt="验证码" /></td>

            </tr>

            <tr>
                <td class="auto-style1"></td>
                <td class="auto-style1">
                    <!--   <a href="javascript:void(0)" class="easyui-linkbutton" >登陆</a></td>
                    <input class="login_bt" id="login" type="submit" value="登  陆" />-->
                    <label class="button-wrapper">
                        <input type="submit" class="login_bt" tabindex="6" id="login_button" onclick="login()" value="登  录"></label>
            </tr>
            
                
            
        </table>

    </div>
</body>
</html>
